A Generic Framework for Genericity

نویسندگان

  • Etienne Duris
  • Didier Parigot
  • Gilles Roussel
چکیده

Recently, generic programming becomes of a major interest in several programming paradigms. A recurrent idea to achieve genericity is to specify algorithms on their convenient data structure, and to allow these speciications to be instantiated onto a large number of neighboring data structures. Polytypic programming, shapely types and generic attribute grammars are generic programming methods related to this approach. A framework for generic programming is proposed to embed these methods. It consists in tools for automatic generation of morphisms between data structures, and for program composition. Thanks to this compositional approach, the complete specialization of generic programs could be advantageously delegated to a general and powerful mechanism of \symbolic composition", which performs deforestation and partial evaluation .

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Speeding up the Java Tm Serialisation Framework through Partial Evaluation

Framework-based Object-Oriented applications are not as eecient as they could be. This results from the high-genericity of frameworks. However, once the framework is instantiated, part of this genericity can be removed. This is for instance the case when gener-icity is obtained through the use of reeection. This paper takes the Java Serialization framework as a typical example and shows how par...

متن کامل

Generic Programming with Dependent Types

Some programs are doubly generic. For example, map is datatype-generic in that many different data structures support a mapping operation. A generic programming language like Generic Haskell can use a single definition to generate map for each type. However, map is also arity-generic because it belongs to a family of related operations that differ in the number of arguments. For lists, this fam...

متن کامل

Genericity in Object-Oriented Programming Languages

Genericity is one of the most powerful means for obtaining flexibility in programming with statically typed programming languages. Genericity constructs take on very different forms, the choice of which has a considerable impact on expressiveness, modularity, static checkability and efficiency properties of programs. This tutorial presents an in-depth discussion of the history, origins, and str...

متن کامل

A Generic and Parallel Algorithm for 2D Image Discrete Contour Reconstruction

In this paper, we present a generic topological and geometrical framework for the digital reconstruction of complex contours from labeled images. The proposed technique is based on combinatorial map simplifications guided by digital straight segments. We illustrate the genericity of the framework with a parallel contour reconstruction algorithm.

متن کامل

Uniform Genericity for Aspect Languages

Aspect-oriented programming languages promise to provide better modularity than pure object-oriented decomposition. A typical benefit of increased modularity is ease of maintenance, evolution and reuse. However, it has been noted by various researchers that many of the first generation aspect languages do not provide the degree of reusability initially hoped for. In this paper, we argue that th...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998